<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<%@page import="com.sinopec.siam.am.common.profile.AbstractErrorHandler"%>
<%@page import="java.io.PrintStream"%>
<%@page import="java.io.ByteArrayOutputStream"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title>ERROR</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="用户, 统一身份, 账号, 认证" />
<meta name="description" content="中国石化用户统一身份认证中心" />
<link type="text/css" rel="stylesheet"
 href="<%=request.getContextPath()%>/styles/login.css" />
</head>
<body>
  <div id="container">
    <div id="header">
      <div id="banner">
        <div id="logo"></div>
        <div id="slogan">
          <h1><a href="#"></a></h1>
          <h2><a href="http://siam.sinopec.com"></a></h2>
        </div>
      </div><!-- end #banner -->
      <div id="menu">
        <div id="slides">中国石化用户统一身份认证中心</div>
        <ul id="tabs">
          <li><a href="#">帮助</a></li>
          <li><a href="#" class="current">登录</a></li>
        </ul>
      </div><!-- end of #menu -->
    </div><!-- end of #header -->
    
    <div id="main">
      <div class="aui-message error" id="errorDivMsg" style="width: auto;">
        <!-- shown with class="aui-message error" -->
        <span class="aui-icon icon-error"></span>
        <p>
  <% 
       Throwable error = (Throwable) request.getAttribute(AbstractErrorHandler.ERROR_KEY);
     if(error != null){
  %>
  <strong>错误信息: <%= error.getMessage() %></strong><br>
  <strong id="strak"> <%  
  ByteArrayOutputStream Stack = new ByteArrayOutputStream();
  error.printStackTrace(new PrintStream(Stack));
  out.println(Stack.toString());
  %></strong>
  <% } %>
        </p>  
        </div>
      <div class="line"></div>
    </div><!-- end #main -->
    
    <div id="footer">
    <p>Copyright (c) 2012 Sinopec.com. All rights reserved. 中国石化 版权所有.  
技术支持：<a href="http://siam.sinopec.com/">SIAM TEAM</a>.</p>
    </div><!-- end #footer -->
  </div>
</body>
</html>
